package TimeToWork.Android;

import java.util.Locale;

public class Absence extends Event {
    
    @SuppressWarnings("unused")
    private static final String TAG = "Absence";
    
    public static enum Type {PUBLIC_HOLIDAY, HOLIDAY, COMPENSATORY_LEAVE, REDUCTION_OF_WORKTIME, PERMISSION, SICKNESS, PARENTAL_LEAVE;
        public String toString() {
            return this.name().toLowerCase(Locale.US);
        }
    };
    
    private Type mType;
    
    public Absence(MyTime date, Type type, int length) {
        super(date, length);
        this.mType = type;
    }
    
    public Absence(Type type, int length)
    {
        super(length);
        this.mType = type;
    }
    
    public Type getType(){
        return this.mType;
    }
}
